package com.ruoyi.course.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 试卷与题目关联对象 sys_paper_topic
 * 
 * @author yjf
 */
public class SysPaperTopic extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 试卷ID */
    private Long paperId;

    /** 题目ID */
    private Long topicId;

    /** 排序 */
    private Integer sort;

    /** 题目名称 */
    @Excel(name = "题目名称")
    private String topicName;


    /** 试卷名称 */
    @Excel(name = "试卷名称")
    private String paperName;

    /** 题目说明 */
    @Excel(name = "题目说明")
    private String topicIntro;

    /** 题目类型 */
    @Excel(name = "题目类型",type = Excel.Type.EXPORT)
    private Integer topicType;

    /** 题目难度 */
    @Excel(name = "题目难度", readConverterExp = "1=易,2=中,3=难")
    private Integer topicHard;

    /** 题目答案 */
    @Excel(name = "题目答案")
    private String topicAnswer;

    /** 状态,0正常1停用 */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Integer topicStatus;

    /** 题目说明 */
    @Excel(name = "题目备注")
    private String topicRemark;

    /** 删除状态*/
    private String delFlag;

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getTopicIntro() {
        return topicIntro;
    }

    public void setTopicIntro(String topicIntro) {
        this.topicIntro = topicIntro;
    }

    public Integer getTopicType() {
        return topicType;
    }

    public void setTopicType(Integer topicType) {
        this.topicType = topicType;
    }

    public Integer getTopicHard() {
        return topicHard;
    }

    public void setTopicHard(Integer topicHard) {
        this.topicHard = topicHard;
    }

    public String getTopicAnswer() {
        return topicAnswer;
    }

    public void setTopicAnswer(String topicAnswer) {
        this.topicAnswer = topicAnswer;
    }

    public Integer getTopicStatus() {
        return topicStatus;
    }

    public void setTopicStatus(Integer topicStatus) {
        this.topicStatus = topicStatus;
    }

    public String getTopicRemark() {
        return topicRemark;
    }

    public void setTopicRemark(String topicRemark) {
        this.topicRemark = topicRemark;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setPaperId(Long paperId)
    {
        this.paperId = paperId;
    }

    public Long getPaperId() 
    {
        return paperId;
    }
    public void setTopicId(Long topicId) 
    {
        this.topicId = topicId;
    }

    public Long getTopicId() 
    {
        return topicId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("paperId", getPaperId())
            .append("topicId", getTopicId())
            .toString();
    }
}
